﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/master.Master" AutoEventWireup="true" CodeBehind="DisbursementList.aspx.cs" Inherits="Staionery_Inventory.Presentation.Disbursement.DisbursementList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br /><br />
    <div id = "div_print">
<div class="row">
<div class="col-md-3">
<asp:Label ID="lblFormNoName" runat="server" Text="Form No:" CssClass=" text-left" />
</div>
<div class="col-md-3">
<asp:Label ID="lblFormNo" runat="server" Text="Dummy" CssClass="text-info" />
</div>
</div>
<br />
<div class="row">
<div class="col-md-3">
<asp:Label ID="lblDepartmentName" runat="server" Text="Department" CssClass="text-left" />
</div>
<div class="col-md-3">
<asp:Label ID="lblDepartment" runat="server" Text="Dummy" CssClass="text-info" />
</div>
</div>
<br />
<div class="row">
<div class="col-md-3">
<asp:Label ID="lblCollectionPointName" runat="server" Text="Collection Point" CssClass="text-left" />
</div>
<div class="col-md-3">
<asp:Label ID="lblCollectionPoint" runat="server" Text="Dummy" CssClass="text-info" />
</div>
</div>
<br />
<div class="row">
<div class="col-md-3">
<asp:Label ID="lblCollectionDateName" runat="server" Text="Collection Date" CssClass="text-left" />
</div>
<div class="col-md-3">
<asp:Label ID="lblCollectionDate" runat="server" Text="Dummy" CssClass="text-info" />
</div>
</div>
<br />
<div class="row">
<div class="col-md-3">
<asp:Label ID="lblTimeOfCollectionName" runat="server" Text="Time of Collection" CssClass="text-left" />
</div>
<div class="col-md-3">
<asp:Label ID="lblTimeOfCollection" runat="server" Text="Dummy" CssClass="text-info" />
</div>
</div>
<br /><br />
<div class="row">
<div class="col-md-3">
<asp:Label ID="lblItemForCollection" runat="server" Text="Items for Collection" CssClass=" text-success" />
</div>
</div>
<br />
<asp:GridView runat="server"  ID="gvItemsCollection" 
        CssClass="col-sm-12 table table-striped table-bordered table-hover"  
        AutoGenerateColumns="False" ClientIDMode="Static" 
         >
       <Columns>
             <asp:BoundField DataField="ItemCode" HeaderStyle-CssClass="text-center" HeaderText="ItemCode" >
              <ItemStyle HorizontalAlign="Justify" />
             </asp:BoundField>
             <asp:BoundField DataField="StationeryDescription" HeaderText="Stationery ItemName" HeaderStyle-CssClass="text-center" >
             <ItemStyle HorizontalAlign="Justify" />
             </asp:BoundField>
              <asp:BoundField DataField="RequestQty" HeaderStyle-CssClass="text-center" HeaderText="Request Quantity" >
                <ItemStyle HorizontalAlign="Justify" />
                </asp:BoundField>
                <asp:BoundField DataField="ActualQty" HeaderStyle-CssClass="text-center" HeaderText="Actual Quantity" >
                <ItemStyle HorizontalAlign="Justify" />
                </asp:BoundField>
                 <asp:BoundField DataField="UOM" HeaderStyle-CssClass="text-center" HeaderText="UOM" >
                <ItemStyle HorizontalAlign="Justify" />
                </asp:BoundField>
            </Columns>
</asp:GridView>
<br />
<div class="row">
<asp:Label ID="lblSigOfRepre" runat="server" Text="Signature of Representative" CssClass=" text-primary"></asp:Label>
</div>
<br />
<div class="row">
<asp:Label ID="lblSigOfStoreClerk" runat="server" Text="Signature of Store Clerk" CssClass=" text-primary"></asp:Label>
</div>
</div>
<br />
<asp:Button ID="btnPrint" CssClass="btn-primary" runat="server" Text="Print" 
         OnClientClick="return printDiv('div_print');" />

     

<script language="javascript" type="text/javascript">
    function printDiv(divID) {
        //Get the HTML of div
        var divElements = document.getElementById(divID).innerHTML;
        //Get the HTML of whole page
        var oldPage = document.body.innerHTML;

        //Reset the page's HTML with div's HTML only
        document.body.innerHTML = "<html><head><title></title></head><body>" + divElements + "</body>";

        //Print Page
        window.print();

        //Restore orignal HTML
        document.body.innerHTML = oldPage;

        //disable postback on print button
        return false;
    }
    </script>

</asp:Content>
